<style type="text/css">
#inv_div {
	padding: 4px;
	max-height: 200px;
	min-height: 100px;
	overflow: auto;
}

#inv_table {
	width: 100%;
	border-collapse: collapse;
}

#inv_table th{
	border: 1px solid #00ffff;
	font-weight: bold;
}

#inv_table td {
	border: 1px solid #00ffff;
}

</style>
<div id="navright">
	<div class="container_blue">
		<div class="container_blue_title">Inventory</div>
	    <div id="inv_div">
	    	<table id="inv_table">
	    	<tr>
	    	    <th width="60%" class="inv_item">Item</th>
	    	    <th width="40%" class="inv_number">Qty</th>
	    	</tr>
	    	
	    	<?php
	    	if(isset($_SESSION['logged_in'])){
				$user_id = $unserializedUser->getUid();
		    	$query = "SELECT a.amount,c.name FROM inventory a, User b, item c WHERE a.user_id = b.uid AND a.user_id = {$user_id} AND a.item_id = c.item_id";
		    	$result = mysql_query($query);
				if($result) $cnt = mysql_num_rows($result);
				else $cnt = 0;
				if($cnt > 0){
					while($row = mysql_fetch_array($result)){
						$name = $row['name'];
						$amount = $row['amount'];
						?>
						<tr>
							<td><?php echo($name);?></td>
							<td><?php echo($amount);?></td>
						</tr>
						<?php
					}
				}
	    	}
			?>
	    	
	    	</table>
	    </div>
    	
    </div>
</div>
	